// To change this License template, choose Tools / Templates
// and edit Licenses / FanDefaultLicense.txt
//
// History:
//   24.01.2011 jst Creation
//

**
** LinkColumn
**
class LinkColumn : Column
{
  DataColumn columnToLink
  {
    get { return &columnToLink }
    set { 
      if (&columnToLink!=null) {/********/}
      it.database.addReference(this)
      &columnToLink = it }
  }

  Bool owned := false
  
  new make (Str name, DataColumn columnToLink, |This| closure) : super(name) {
    this.columnToLink = columnToLink
    closure(this)
  }


}